package mark.tom.fiter;

import androidx.annotation.CallSuper;

import java.util.List;

import mark.tom.fiter.constants.StatusCodeEnums;

public class RequestListener<T> implements IRequestListener<T> {

    @Override
    public void onSuccess() {
    }

    @CallSuper
    public void onSuccess(T mItem) {
        onSuccess();
    }

    @CallSuper
    public void onSuccess(List<T> mLists) {
        onSuccess();
    }

    public void onFail() {
    }

    @CallSuper
    public void onFail(String msg) {
        onFail();
    }

    @CallSuper
    public void onFail(String msg, @StatusCodeEnums int statusCode) {
        onFail(msg);
    }
}
